import time
from selenium import webdriver
from selenium.webdriver.common.by import By

class TestCase:
    def __init__(self) -> None:
        self.driver=webdriver.Chrome()
        self.driver.get('http://www.baidu.com')

    def test_implicitly(self):
        self.driver.implicitly_wait(10)
        self.driver.find_element(By.ID,'kw').send_keys('selenium')
        time.sleep(2)#线程阻塞
        self.driver.find_element(By.ID,'su').click()
        time.sleep(3)